﻿using Dict.DataModel;
using System.Collections;
using UnityEngine;
namespace Story
{
    class StepRotateCharactor : StepBase
    {
        protected override void OnStart()
        {
            float angle = float.Parse(actionParam2);
            var charactor = GetCharactor(actionParam1);
            if (charactor != null)
            {
                charactor.RotateTo(angle);
            }

            End();
        }

    }
}